package model

import "go.mongodb.org/mongo-driver/bson/primitive"

//石墨化2
//基本信息表
type BasicInformation struct {
	Id          primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Oven_Order  string             `bson:"oven_order" binding:"required" form:"oven_order" json:"oven_order"`
	Oven_Number string             `bson:"oven_number" binding:"required" form:"oven_number" json:"oven_number"`
	//Stipulate_Time string `bson:"stipulate_time" binding:"required" form:"stipulate_time" json:"stipulate_time"` //前端规定时间
	Batch_Number    string  `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Amount          int     `bson:"amount" json:"amount" form:"amount"`
	Norms_Type      string  `bson:"norms_type"  form:"norms_type" json:"norms_type"`
	Weight          float32 `bson:"weight" json:"weight" form:"weight"`
	PlannedCapacity float32 `bson:"planned_capacity" json:"planned_capacity" form:"planned_capacity"`
	InfactCapacity  float32 `bson:"infact_capacity" json:"infact_capacity" form:"infact_capacity"`
	Start_Time      string  `bson:"start_time" binding:"required" form:"start_time" json:"start_time"`
	Stop_Time       string  `bson:"stop_time" form:"stop_time" json:"stop_time"`
	//Data []string `bson:"data" form:"data" json:"data"`
	Creator   string `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt string `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe  string `bson:"describe" json:"describe" form:"describe"`    //描述
	Unique    string `json:"unique" bson:"unique" form:"unique"`
}

//详细信息
type DetailedInformation struct {
	Id              primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Stipulate_Time  string             `bson:"stipulate_time" binding:"required" form:"stipulate_time" json:"stipulate_time"` //前端规定时间
	Creator         string             `bson:"creator" json:"creator" form:"creator"`                                         //创建者
	CreatedAt       string             `bson:"createdAt" json:"createdAt" form:"createdAt"`                                   //后端生成时间
	Describe        string             `bson:"describe" json:"describe" form:"describe"`                                      //描述
	Batch_Number    string             `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Norms_Type      string             `bson:"norms_type" binding:"required" form:"norms_type" json:"norms_type"`
	Gear            string             `bson:"gear" form:"gear" json:"gear"`
	First_Current   []float32          `bson:"first_current" json:"first_current" form:"first_current"`
	First_Voltage   []float32          `bson:"first_voltage" json:"first_voltage" form:"first_voltage"`
	Second_Voltage  []float32          `bson:"second_voltage" json:"second_voltage" form:"second_voltage"`
	Second_Current  []float32          `bson:"second_current" json:"second_current" form:"second_current"`
	Power           float32            `bson:"power" json:"power" form:"power"`
	Oven_Resistance float32            `bson:"oven_resistance" json:"oven_resistance" form:"oven_resistance"`
	Drift           float32            `bson:"drift" json:"drift" form:"drift"`
	Oil_OC          float32            `bson:"oil_oc" json:"oil_oc" form:"oil_oc"`
	A_Chest_OC      float32            `bson:"a_chest_oc" json:"a_chest_oc" form:"a_chest_oc"`
	B_Chest_OC      float32            `bson:"b_chest_oc" json:"b_chest_oc" form:"b_chest_oc"`
	Desc            string             `bson:"desc" form:"desc" json:"desc"`
	Unique          string             `json:"unique" bson:"unique" form:"unique"`
}
